using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace GameFrameWork 
{
    public partial class Constant
    {
  
        public static class Asset
        {
            public static readonly string GameRootPath = "Assets/Game";
            private static readonly string RepositoryPath = GameRootPath + "/Repository";
            private static readonly string ConfigPath = RepositoryPath + "/Configs";

            public static readonly string UITexturesPath = RepositoryPath + "/UITextures";
            public static readonly string SpriteAtlasTexPath = RepositoryPath + "/SpriteAtlas_Texture";
            public static readonly string SpriteAtlasPath = RepositoryPath + "/SpriteAtlas";

            public static string GetFontAsset(string assetName)
            {
                return Utility.Text.Format(RepositoryPath + "/Fonts/{0}.ttf", assetName);
            }

            public static string GetConfigAsset(string assetName, bool fromBytes)
            {
                return Utility.Text.Format(ConfigPath + "/{0}.{1}", assetName, fromBytes ? "bytes" : "txt");
            }

            public static string GetConfigAsset(string assetName)
            {
                return Utility.Text.Format(ConfigPath + "/{0}.asset", assetName);
            }
        }

    }

}


